﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Foundation;
using Business;

namespace RPGSoundmixer.SoundSuiteConfiguration {
    public class EffektGroupCreatePresenter : BasePresenter<IEffektGroupCreateView> {
#if DEBUG
        /// <summary>
        /// Property für das setzen eines Mocks
        /// </summary>
        public IDataHandler Model {
            get { return this.model; }
            set { this.model = value; }
        }
#endif 

        public EffektGroupCreatePresenter(IEffektGroupCreateView view) : base(view) {

        }

        public void AddEffektGroupToCurrentSoundSuite() {
            EffektGroup group = new EffektGroup();
            group.Name = this.view.GroupName;
            group.Key = this.view.GroupKey;
            this.model.AddEffektGroupToCurrentSoundSuite(group); 
        }
    }
}
